<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*,cn.ac.cintcm.dataconverge.researcher.domain.*" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String subjectId = request.getParameter("subjectId");
AchievemanAchievement obj = (AchievemanAchievement)request.getAttribute("achObj");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>科研项目管理与数据汇交平台</title>  
	<script language="javascript" type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="<%=basePath %>index/Scripts/script.js"></script>
	<script language="javascript" src="<%=basePath %>js/common.js"></script>
	<link href="<%=basePath %>index/Themes/com/style.css" type="text/css" rel="stylesheet"></link>
	<script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>
    <script type="text/javascript" language="javascript">
    var achId = "<%=obj == null?"":obj.getId()%>";  
	function checkForm(){ 
	    var flag = false;
	    var medTypeCn = form2.medTypeCn.value;
		if(isNull(medTypeCn)){
			alert("请选择中医领域分类");
			form2.medTypeCn.focus();
			return false;
		} 
		var temp = form2.introduction.value;
		if(isNull(temp)){
			alert("请填写成果简介");
			form2.introduction.focus();
			return false;
		} 
		return true;
	} 
        
	function saveData(modId,tomodId){
		if(checkForm()){ 
		   form2.action = "<%=path%>/achieve.htm?action=saveData&modId="+modId+"&subjectId=<%=subjectId%>&tomodId="+tomodId;
		   form2.submit(); 
	   } 
	}
	function changeTop(){
         var obj = parent.frames("bannerFrame"); 
         obj.location.href="<%=path%>/achieve.htm?action=top&modId=2&achId=<%=obj==null?"":obj.getId() %>";
    }
</script>  
</head>
<body class="rtm_body" scroll=yes>
<form name="form2" action="" method="post"> 
          <div style="margin-top:0px">
     <table id="Table9" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr valign="top"> 
                <td class="fw_ptmain_bd_05" align="left" style="height: 155px;">
                    <!--Tab页（标题）--> 
                     <!--Tab页（标题）-->
                     
                      <table  cellspacing="0" cellpadding="0" width="100%" style="border-right: #9b9b9b 1px solid;
                        border-left: #9b9b9b 0px solid; border-bottom: #9b9b9b 1px solid" id="Table22"
                        border="0">
                        
                        <tr align="center">
                            <td valign="top">
                                <!--三部分内容-->
                                <div class="tab2_fim_div" id="navDiv10"> 
                        			 	<div id="tdForm"> 
		                                    <table border="0" cellpadding="0" cellspacing="1" width="100%"   class="dg_borderstyle">
		                                       
		                                        <tr>
		                                            <td class="fim_l" width="10%">中图分类</td>
		                                            <td class="fim_r" colspan=3 >
		                                            <input type="text" name="category" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getCategory()) %>" class="com_textbox" style="width:100%"/></td> 
		                                              <input type="hidden" name="achId" value="<%=obj==null?"":obj.getId() %>" />
		                                        </tr> 
		                                        <tr>
		                                            <td class="fim_l" width="10%">中医领域分类(<font color="red">＊</font>)</td>
		                                            <td class="fim_r"  width="40%"> 
		                                           <select name="medTypeCn" style="width:100%">
														<option value=""></option>
														<option value="1" <%if(obj != null && "1".equals(obj.getMedtypecn())){out.print(" selected");}%>>基础</option>
														<option value="2" <%if(obj != null && "2".equals(obj.getMedtypecn())){out.print(" selected");}%>>临床</option>
														<option value="3" <%if(obj != null && "3".equals(obj.getMedtypecn())){out.print(" selected");}%>>中药</option>
														<option value="0" <%if(obj != null && "0".equals(obj.getMedtypecn())){out.print(" selected");}%>>其它</option>
													</select>
		                                            </td> 
		                                             <td class="fim_l" width="10%">医学分类</td>
		                                            <td class="fim_r"  >
		                                             <select name="medType" style="width:100%">
														<option value=""></option>
														<option value="1" <%if(obj != null && "1".equals(obj.getMedtype())){out.print(" selected");}%>>民族医学</option>
														<option value="2" <%if(obj != null && "2".equals(obj.getMedtype())){out.print(" selected");}%>>中西医结合</option>
														<option value="3" <%if(obj != null && "3".equals(obj.getMedtype())){out.print(" selected");}%>>西医</option>
														<option value="4" <%if(obj != null && "4".equals(obj.getMedtype())){out.print(" selected");}%>>中医学</option>
														<option value="5" <%if(obj != null && "5".equals(obj.getMedtype())){out.print(" selected");}%>>中药学</option>
														<option value="6" <%if(obj != null && "6".equals(obj.getMedtype())){out.print(" selected");}%>>中医学与中药学其它学科</option>
													</select></td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">主题词(中)</td>
		                                            <td class="fim_r"  > 
		                                            <input type="text" name="theme" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getTheme()) %>" class="com_textbox" style="width:100%"/>
		                                            </td> 
		                                             <td class="fim_l" width="10%">主题词(英)</td>
		                                            <td class="fim_r"  >
		                                              <input type="text" name="themeEn" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getThemeEn()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">关键词</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="text" name="keyword" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getKeyword()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                        <tr>
		                                            <td class="fim_l" width="10%">数据采集来源</td>
		                                            <td class="fim_r"   colspan="3">
		                                            <input type="radio" name="original" value="1" <%if(obj != null && "1".equals(obj.getOriginal())){out.print(" checked");}%>>国科网 
		                                            <input type="radio" name="original" value="2" <%if(obj != null && "2".equals(obj.getOriginal())){out.print(" checked");}%>>集锦 
		                                            <input type="radio" name="original" value="3" <%if(obj != null && "3".equals(obj.getOriginal())){out.print(" checked");}%>>卫生成果库 
													<input type="radio" name="original" value="4" <%if(obj != null && "4".equals(obj.getOriginal())){out.print(" checked");}%>>中医局调查表
													<input type="radio" name="original" value="0" <%if(obj != null && "0".equals(obj.getOriginal())){out.print(" checked");}%>>其它</td> 
		                                        </tr>  
		                                         <tr>
		                                            <td class="fim_l" width="10%">成果简介(<font color="red">＊</font>)</td>
		                                            <td class="fim_r" colspan=3 > 
		                                           <textarea rows="5"  class="com_textarea" cols=""   style="background-color: #F9F2A5;"  name="introduction" style="width:100%;" ><%=obj==null?"":StringUtilTool.NULL2Blank(obj.getIntroduction()) %></textarea>
		                                            </td>  
		                                        </tr>  
		                                         <tr> 
		                                             <td class="fim_l" width="10%">主要创新</td>
		                                            <td class="fim_r"  colspan=3>
		                                             <textarea rows="5"  class="com_textarea" cols=""   style="background-color: #F9F2A5;"  name="innovation" style="width:100%;" ><%=obj==null?"":StringUtilTool.NULL2Blank(obj.getInnovation()) %></textarea>
		                                             </td> 
		                                        </tr>  
		                                         <tr>
		                                        <td colspan=4> 
		                                        <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
				                                    <tr>
				                                        <td align="center">
				                                         <input type="button" value=" 上一步 "   class="com_btn2"   onclick="saveData('2','1')" /> &nbsp;&nbsp;<input type="button" value=" 保存 "   class="com_btn2"   onclick="saveData('2','2')" /> &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" 下一步 "   class="com_btn2"   onclick="saveData('2','3')" /> 
				                                        </td>
				                                    </tr>
				                                </table>
                                                </td>
                                                </tr>
		                                    </table>   
                               			</div> 
                                </div>
                            </td>
                        </tr>
                       
                    </table>
             	 </td>
              </tr>
           </table>
         </div> 
           
         </form>
         
</body>
</html> 
<script>
changeTop();

</script>